#!/bin/bash
function checkprocess(){
    if (ps aux|grep -v grep|grep "$1" )
    then
        echo "active"
    else
        echo "miss"
        #echo $1
        php $2 $1 &
    fi
}

cd /var/www/html/taoguan/crontab
checkprocess "/var/www/html/taoguan/crontab/thread_order.php"
